/*服务端api模块*/
layui.define(function (exports) {
    /*好像必须拥有一个与文件同名的模块,所以定义一个空模块*/
    exports('serverurl', {});

    const auth = {
        account: {
            add: '/account/add',
            edit: '/account/update',
            list: '/account/list',
            get: '/account/get',
            del: '/account/delete'
        },
        user: {
            add: '/user/add',
            edit: '/user/update',
            list: '/user/list',
            get: '/user/get',
            del: '/user/delete'
        },
        menu: {
            add: '/menu/add',
            edit: '/menu/update',
            list: '/menu/list',
            get: '/menu/get',
            del: '/menu/delete',
            listRoot: '/menu/listRoot',
            listAll: '/menu/listAll'
        }
    };

    exports('auth', auth);

    const ro = {
        goods: {
            list: '/goods/list'
        }
    };

    exports('ro', ro);


    var fin = {
        fin: {
            add: function () {
                console.log('fin.fin.add');
                return '/fin/add';
            }
        }
    }

    exports('fin', fin);

});